-- GENERATED SPELL FOR [Drakkari Battle Rider] --


function spell0_29836(pUnit, Event) --@Poisoned Spear,n/a--
pUnit:FullCastSpellOnTarget(55521,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29836', 22500, 1)
end

function spell1_29836(pUnit, Event) --@Poisoned Spear,n/a--
pUnit:FullCastSpellOnTarget(58967,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29836', 22500, 1)
end

function spell2_29836(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(55348,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29836', 1500, 1)
end

function spell3_29836(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(58966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29836', 1500, 1)
end

function Sorts_29836(pUnit, Event)
local choix_sorts_29836 = math.random(0, 3)
if choix_sorts_29836 == 0 then
pUnit:RegisterEvent('spell0_29836', 1, 1)
end
if choix_sorts_29836 == 1 then
pUnit:RegisterEvent('spell1_29836', 1, 1)
end
if choix_sorts_29836 == 2 then
pUnit:RegisterEvent('spell2_29836', 1, 1)
end
if choix_sorts_29836 == 3 then
pUnit:RegisterEvent('spell3_29836', 1, 1)
end
end

function mob29836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29836', math.random(1500, 3000), 1)
end

function mob29836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29836, 1, 'mob29836_Action')
RegisterUnitEvent(29836, 2, 'mob29836_Leave')
RegisterUnitEvent(29836, 3, 'mob29836_Kill')
RegisterUnitEvent(29836, 4, 'mob29836_Die')
